<!doctype html>
<html lang="en" ng-app="myApp">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../dist/select.min.css">
    <script src="angular.min.js"></script>
    <script src="../dist/select.min.js"></script>
    <script src="controller.js"></script>
</head>
<body>
<div ng-controller="myCtrl">

    <div style="display: flex;">
        <style>
            section {
                margin: 10px;
            }
        </style>
        <section>Multiple select:
            <my-select class="input-xlarge" multiple="true"
                       ng-model="selectedCar"
                       check-all-name="全部汽车"
                       options="c.name for c in cars"
                       change="selected()"></my-select>
        </section>

        <section>Single select:
            <my-select class="input-xlarge"
                        ng-model="selectedFruit"
                        options="c.name for c in fruits"
                        change="selected()"></my-select>
        </section>
    </div>

</div>
</body>
</html>